/*
 * ordenacion.c
 *
 *  Created on: 21/07/2011
 *      Author: Administrador
 */


#include <stdio.h>
#include <stdlib.h>
#include "ordenacion.h"

/**
 *
 */
void ordBurbuja(array_t entrada) {

	int i, j;
	int valor;
	int temp;

	for (i = 0; i < entrada.tam - 1; i++) {
		valor = entrada.vector[i];
		for (j = i + 1; j < entrada.tam; j++) {
			if (valor > entrada.vector[j]) {


				printf("Intercambio \n");
			}
		}
	}
	entrada.vector[4] = 3;

}


void intercambiar(int *a, int *b) {

	int tmp;

	tmp = *b;
	*b = *a;
	*a = tmp;
}

